﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login.ascx .cs" Inherits="ChicagoDealsN.WebUserControls.Login" %>
<asp:Panel runat="server" ID="pnl_loginPanel" Visible="true">
    <table>
        <tr>
            <td>Username:</td>
            <td><asp:TextBox ID="txtUsername" runat="server" /><asp:RequiredFieldValidator ID="RequiredFieldValidator_UserName"
                    runat="server" ErrorMessage="UserName Required" ControlToValidate="txtUsername"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>Password:</td>
            <td><asp:TextBox ID="txtPassword" runat="server" TextMode="Password" /><asp:RequiredFieldValidator ID="RequiredFieldValidator_Password"
                    runat="server" ErrorMessage="Password Required" ControlToValidate="txtPassword"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td><asp:Button ID="btnLogin" runat="server" OnClick="btnLogin_OnClick" Text="Login"/></td>
        </tr>
        <tr>
            <td><a href="/website/Signup.aspx">New User?</a></td>
            <td></td>
        </tr>
    </table>
    
    <h4><asp:Label ID="confirmation" runat="server" /></h4>
</asp:Panel>
<asp:Panel runat="server" ID="pnl_loggedInPanel" Visible="false">
    <table>
        <tr>
            <td><h3 class="loginname">Welcome,</h3</td>
            <td><h3 class="loginname"><i><asp:Label ID="lbl_UserName" runat="server"/></i></h3></td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btn_Logout" runat="server" OnClick="btn_Logout_OnClick" Text="Logout" />
            </td>
        </tr>
    </table>
</asp:Panel>